package com.yuxi.Dao.Impl;

import java.io.Serializable;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.yuxi.Dao.InformationClassificationDao;
import com.yuxi.Entity.InformationClassification;
import com.yuxi.Entity.UserInfo;
@Repository
public class InformationClassificationDaoImpl extends BaseDaoImpl<Serializable, Serializable> implements InformationClassificationDao {
	
	private Logger logger=LoggerFactory.getLogger(InformationClassificationDaoImpl.class);
	public InformationClassificationDaoImpl(){
		super(InformationClassification.class);
	}
	@Override
	public InformationClassification getClassification(Integer id) {
		// TODO Auto-generated method stub
		return (InformationClassification) super.get(id);
	}

	@Override
	public void deleteClassification(InformationClassification iClassification) {
		// TODO Auto-generated method stub
		super.delete(iClassification);
	}

	@Override
	public InformationClassification addClassification(InformationClassification iClassification) {
		// TODO Auto-generated method stub
		return (InformationClassification) super.addAndReturn(iClassification);
	}

	@Override
	public void modifyClassification(InformationClassification iClassification) {
		// TODO Auto-generated method stub
		super.update(iClassification);
	}
	@Override
	public List<InformationClassification> getAllInformationClassification() {
		// TODO Auto-generated method stub
		return super.find("from InformationClassification");
	}

}
